<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Home</title>
  <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
  <script src="js/jquery.min.js"></script>
  <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  <script src="js/modernizr.custom.js"></script>
  <link rel="stylesheet" type="text/css" href="css/component.css" />
  <style>
.main{
  color:white;
}
 .mc{
display:inline-block;
  margin-top:50px;
  font-size:16px;
  font-weight:bold;
  margin-left:40px;
}
  </style>
<script>
function ztz(){
   $("#rm").css("display","none");
   $("#dt").css("display","inline-block");
  setTimeout(function(){ 
     //alert("Hello"); 
    window.location.href = "/ztzplay";
  }, 500);
}
</script>
</head>
<body>
<!--header-->
<div class="header" >


  <div class="header-top">
    <div class="container">
      <div class="head-top">
        <div class="logo">

          <h1>游戏中心</h1>

        </div>
        <div class="top-nav">
          <span class="menu"><img src="images/menu.png" alt=""> </span>

          <ul>
            <li class="active"><a class="color1" href="/">首页</a></li>
            <li><a class="color2" href="/gameList">游戏</a></li>
            <li><a class="color4" href="/newsList">新闻</a></li>
            <li><a class="color6" href="contact.html">联系我们</a></li>
            <div class="clearfix"> </div>
          </ul>

          <!--script-->
          <script>
            $("span.menu").click(function(){
              $(".top-nav ul").slideToggle(500, function(){
              });
            });
          </script>

        </div>

        <div class="clearfix"> </div>
      </div>
    </div>
  </div>
</div>

<!--content-->
<div class="content">
  <div class="container" style="    background: url(images/ztz_bk.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 600px;">
    <div class="content-top">
      <div class="wrap">
        <div class="main" style="margin-top:-40px;">
<h1  style="    margin-top: 85px;
    margin-left: 400px;">欢迎来到掷骰子游戏！</h1>
      
<div id="tzdiv">
         <span class="mc">玩家：</span>
         <div id="rm" style="display:inline-block;"><span th:text=${wjsz}>6</span></div>
          <img id="dt" src="images/ztzd.gif" style="width:40px;display:none;" />   
</div> 
        <input type="button" value="掷骰子" style="color:black;margin-left:38px;margin-top:20px;"  onclick="ztz()" />

        <p th:utext="${resultMessage}" style="margin-top:10px;padding:10px 20px;" >恭喜您，庄家掷出骰子数为3，玩家胜利！</p>

         
        </div>
      </div>
    </div>

  </div>
</div>
<!---->
<div class="footer">
  <p class="footer-class">Copyright &copy; 2025.Sunys</p>
</div>

</body>
</html>